@extends('back.index')
@section('title','作家咨询管理-后台管理系统')
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">章节管理</h2>
        <div class="table-responsive">
            <table class="table table-striped">
                <tr>
                    <th>卷名</th>
                    <th>章节名</th>
                    <th>添加时间</th>
                    <th>更新时间</th>
                    <th>操作</th>
                </tr>
            @if(count($List))
                @foreach($List as $k)
                    <tr>
                        <td>{{$k->rid}}</td>
                        <td>{{$k->chaptersname}}</td>
                        <td>{{date('Y-m-d H:i:s',$k->addtime)}}</td>
                        <td>
                            @if($k->uptime)
                                {{date('Y-m-d H:i:s',$k->uptime)}}
                                @else
                                暂无更新
                            @endif
                        </td>
                        <td>
                            <a href="{{url('back/writer/book_novel/'.$k->id)}}" class="btn btn-info TXT">查看内容</a>
                             &nbsp;
                            <a href="{{url('back/writer/book_txt/desc/'.$k->bid)}}" class="btn btn-info">排序</a>
                            &nbsp;
                            <a href="{{url('back/writer/book_txt/del/'.$k->id)}}" class="btn btn-info">删除</a>
                        </td>
                    </tr>
                    @endforeach
                @else
                    <tr>
                        <td colspan="8" style="text-align: center;border-bottom: 1px solid #DDD"><h2>作者暂时还没有发表内容哦</h2></td>
                    </tr>
            @endif
            </table>
            {{$List->links()}}
        </div>
    </div>

@endsection

